#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
void Func(char src[], int k)
{
	int len = strlen(src);
	int time = k % len;
	char tmp[256] = { 0 };
	strcpy(tmp, src + time);
	strncat(tmp, src, time);
	strcpy(src, tmp);
}
int main()
{
	char str[] = "ABCD";
	Func(str, 2);
	printf("%s\n", str);
	return 0;
}